package cn.yh.shop.product.service.impl;

import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.yh.shop.product.dao.CouponDao;
import cn.yh.shop.product.model.Coupon;
import cn.yh.shop.product.service.ICouponService;
@Service
public class CouponServiceImpl implements ICouponService {

	@Autowired
	private CouponDao coupondao;
	@Override
	public List<Coupon> getCoupons(HashMap<String, String> map) {
		return coupondao.selectCouponsByCondit(map);
	}

	@Override
	public Coupon getCoupon(HashMap<String, String> map) {
		return coupondao.selectCouponById(map);
	}

}
